
require("babel-polyfill");
import { createApp } from 'vue'
import AppEntry from "@/App.vue";
import router from './router'
import store from './store'

import '@/assets/font/iconfont.css';
import '@/assets/styles/reset.css';
import '@/assets/styles/global.less';

import { setupAntd } from '@/plugin/antd'

import dayjs from "dayjs";
import relativeTime from "dayjs/plugin/relativeTime";
import updateLocale from "dayjs/plugin/updateLocale";

dayjs.extend(relativeTime);

dayjs.extend(updateLocale)

dayjs.locale("zh-cn")

dayjs.updateLocale('en', {
  relativeTime: {
    future: "in %s",
    past: "%s 前",
    s: '几秒前',
    m: "一分钟前",
    mm: "%d 分钟前",
    h: "一个小时前",
    hh: "%d 个小时前",
    d: "一天前",
    dd: "%d 天前",
    M: "一个月前",
    MM: "%d 个月前",
    y: "一年前",
    yy: "%d 年前"
  }
})

const app = createApp(AppEntry);
// 注册ant-design-vue组件
setupAntd(app)


app.use(store).use(router).mount('#app')
